using System;
using System.Web.UI;
using Headspring.Training.Domain.Model;
using Headspring.Training.WebUI.Presenters;
using Headspring.Training.WebUI.Views;
using StructureMap;

namespace Headspring.Training.WebUI
{
	public partial class Navigation : UserControl, INavigationView
	{
		private Employee _currentUser;

		protected void Page_Load(object sender, EventArgs e)
		{
			NavigationPresenter presenter = ObjectFactory.FillDependencies<NavigationPresenter>();
			presenter.Execute(this);
		}

		public Employee CurrentUser
		{
			get { return _currentUser; }
			set { _currentUser = value; }
		}
	}
}